﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Senac.NetMob.Models;

namespace Lucas.Wendell.PI.Model
{
    [Table("Tb_ComodoCaracteristica")]
    public class ComodoCaracteristica : BaseModel
    {
        public int ComodoId { get; set; }

        [ForeignKey("ComodoId")]
        public virtual Comodo Comodo { get; set; }

        [Required]
        [StringLength(150, ErrorMessage = NetImobiliariaConstants.MESSAGE_ERROR_STRING_LENGTH)]
        public string Avaliacao { get; set; }

        public string Descricao { get; set; }
    }
}
